<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>定时器</title>
		<style>
			input{
				border:1px solid black;
				font-size: 20px;
				
			}
		</style>
	</head>
	<body>
		
		<script type="text/javascript">
			/*var firstTime = new Date().getTime();
			var count = 0;
			var time = setInterval(function(){
				lastTime = new Date().getTime();
				console.log(lastTime - firstTime);
				if(count++ > 10){
					clearInterval(time);
				}
			},1000);*/
			
			
		</script>
	</body>
</html>
